﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Calculatorwithclass
{
    class Calc
    {
        public Calc()
        { 
        }
        private int value1;

        public int Value1
        {
            get { return value1; }
            set { value1 = value; }
        }
        private int value2;

        public int Value2
        {
            get { return value2; }
            set { value2 = value; }
        }
        private float result;

        public float Result
        {
            get { return result; }
            set { result = value; }
        }

        public float Add(int val1, int val2) {
            Result = val1 + val2;
            return Result;
        }

        public float Add() {
            Result = Value1 + Value2;
            return Result;
        }
        public float Sub()
        {
            Result = Value1 - Value2;
            return Result;
        }
        public float Mul()
        {
            Result = Value1 * Value2;
            return Result;
        }
        public float Div()
        {
            Result = Value1 / Value2;
            return Result;
        }
    }
}
